home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / xntp3.zip / Config.rs6000 < prev    next >
Text File  |  1992-08-19  |  7KB  |  184 lines

  1. # Edit this file to reflect information specific to your installation.
  2. # Then run 'make makefiles' to propagate the information to all the makefiles,
  3.  
  4. #
  5. # Definitions for the library:
  6. #
  7. # You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN
  8. #       or -DXNTP_AUTO_ENDIAN depending on which way your machine's
  9. #       bytes go for the benefit of the DES routine.  Most things
  10. #       sold by DEC, the NS32x32 and the 80386 deserve a
  11. #       -DXNTP_LITTLE_ENDIAN.  Most of the rest of the world does
  12. #       it the other way.  If in doubt, pick one, compile
  13. #       everything and run authstuff/authcert < authstuff/certdata.
  14. #       If everything fails, do it the other way.
  15. #
  16. #       Under BSD, you may define -DXNTP_NETINET_ENDIAN to use
  17. #       netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and
  18. #       XNTP_LITTLE_ENDIAN should be used.
  19. #
  20. LIBDEFS= -DXNTP_AUTO_ENDIAN -DRS6000
  21.  
  22. #
  23. # Library loading:
  24. #
  25. # If you don't want your library ranlib'ed, chose the second line
  26. #
  27. #RANLIB=        ranlib
  28. RANLIB=    : # ar does the work of ranlib under System V
  29.  
  30. #
  31. # Definitions for programs:
  32. # If your compiler doesn't understand the declaration `signed char',
  33. #       add -DNO_SIGNED_CHAR_DECL.  Your `char' data type had better be
  34. #    signed.  If you don't know what the compiler knows, try it
  35. #    without the flag.  If you get a syntax error on line 13 of
  36. #    ntp.h, add it.  Note that `signed char' is an ANSIism.  Most
  37. #    older, pcc-derived compilers will need this flag.
  38. #
  39. # If your library already has 's_char' defined, add -DS_CHAR_DEFINED.
  40. #
  41. # For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain
  42. #    about broadaddr and will hang if you run without a -d flag
  43. #    on the command line.  I actually can't believe the latter
  44. #    bug.  If it hangs on your system with the flag defined, peruse
  45. #    xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it
  46. #    the other way).  This flag affects xntpd only.
  47. #
  48. # For Ultrix 2.0, add -DULT_2_0_SUCKS.  This OS has the same hanging
  49. #    bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition
  50. #    has some strangeness concerning signal masks.  Ultrix 2.3 doesn't
  51. #    have these problems.  If you're running something in between
  52. #    you're on your own.  This flag affects xntpd only.
  53. #
  54. # For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c
  55. #    that sets the battery clock at the same time that it updates
  56. #    the driftfile. It does this by revving up the niceness, then
  57. #    sets the time of day to the current time of day. Ordinarily,
  58. #    you would need this only on non-networked machines.
  59. #
  60. # There are three ways to pry loose the kernel variables tick and tickadj
  61. #    needed by ntp_unixclock.c.  One reads kmem and and is enabled
  62. #    with -DREADKMEM.  One uses Sun's libkvm and is enabled with
  63. #    -DUSELIBKVM. The last one uses builtin defaults and is enabled
  64. #    with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or
  65. #    -DNOKMEM must be defined. Suns and recent BSD should use
  66. #    -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use
  67. #    the DAEMONLIBS below to get the kernel routines.
  68. #
  69. # If your gethostbyname() routine isn't based on the DNS resolver (and,
  70. #    in particular, h_errno doesn't exist) add a -DNODNS.  There
  71. #    doesn't seem to be a good way to detect this automatically which
  72. #    works in all cases.  This flag affects xntpres only.
  73. #
  74. # The flag -DDEBUG includes some debugging code.
  75. #
  76. # The flag -DREFCLOCK causes the basic reference clock support to be
  77. #    compiled into the daemon.  If you set this you will also want
  78. #    to configure the particular clock drivers you want in the
  79. #    CLOCKDEFS= line below.  This flag affects xntpd only.
  80. #
  81. # There is an occurance of a call to rindex() in the daemon.  You may
  82. #    have to include a -Drindex=strrchr to get this to load right.
  83. #
  84. # To change the location of the configuration file, use a
  85. #    -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
  86. #
  87. # Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as,
  88. #    well as -DNOKMEM
  89. #
  90. # If your library doesn't include the vsprintf() routine, define
  91. #    NEED_VSPRINTF.
  92. #
  93. # Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV
  94. #    to include a device driver for it. The latter requires a
  95. #    serial port and either a line discipline or STREAMS module.
  96. #    The PPS signal may also be generated via a reference clock
  97. #    module like DCF77. In that case a special define is required for
  98. #    the reference clock module (only one source of PPS signal should
  99. #    be used)
  100. #
  101. DEFS= -DREFCLOCK -DNOKMEM -DRS6000 -DBIGTIMESTEP -DDEBUG
  102.  
  103. #
  104. #  Authentication types supported.  Choose from DES and MD5.  If you
  105. #  have a 680x0 type CPU and GNU-C, also choose -DFASTMD5
  106. #
  107. AUTHDEFS=-DDES -DMD5
  108.  
  109. #
  110. # Clock support definitions (these only make sense if -DREFCLOCK used):
  111. #
  112. # Define -DLOCAL_CLOCK to include local pseudo-clock support
  113. #
  114. # Define -DPST to include support for the PST 1020 WWV/H receiver.
  115. #
  116. # Define -DWWVB to include support for the Spectracom 8170 WWVB receiver.
  117. #
  118. # Define -DCHU to include support for a driver to receive the CHU
  119. #    timecode.  Note that to compile in CHU support you must
  120. #    previously have installed the CHU serial line discipline in
  121. #    the kernel of the machine you are doing the compile on.
  122. #
  123. # Define -DDCF to include support for the DCF77 receiver. This code
  124. #    requires a special STREAMS module found in the kernel directory.
  125. # Define -DDCFPPS for PPS support via the DCF77 receiver
  126. #    (see also: -DPPS)
  127. #
  128. # Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver.
  129. #
  130. CLOCKDEFS= -DLOCAL_CLOCK
  131.  
  132. #
  133. # For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine.
  134. #    If USELIBKVM is defined above, include a -lkvm to get the kernel
  135. #    routines.
  136. #
  137. #DAEMONLIBS= -lmld
  138. #DAEMONLIBS= -lkvm
  139. DAEMONLIBS=
  140.  
  141. #
  142. # Name resolver library.  Included when loading xntpres, which calls
  143. # gethostbyname().  Define this if you would rather use a different
  144. # version of the routine than the one in libc.a
  145. #
  146. #RESLIB= -lresolv
  147. RESLIB=
  148.  
  149. #
  150. # Option flags for the C compiler.  A -g if you are uncomfortable
  151. #
  152. COPTS= -O
  153.  
  154. #
  155. # C compiler to use.  gcc will work, but avoid the -fstrength-reduce option
  156. # if the version is 1.35 or earlier (using this option caused incorrect
  157. # code to be generated in the DES key permutation code, and perhaps
  158. # elsewhere).
  159. #
  160. COMPILER= bsdcc
  161.  
  162. #
  163. # Directory into which binaries should be installed
  164. #
  165. BINDIR=    /usr/local
  166.  
  167. #
  168. # Special library for adjtime emulation. Used under HP-UX
  169. # (remember to run make in the adjtime directory)
  170. #
  171. #ADJLIB= ../adjtime/libadjtime.a
  172. ADJLIB=
  173.  
  174. #
  175. # BSD emulation library. In theory, this fixes signal semantics under
  176. # HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now
  177. # a work-around in the code (compiled when hpux80 is defined). In other
  178. # words, use this for HP-UX prior to 8.0.
  179. #
  180. #COMPAT= -lBSD
  181. COMPAT=
  182.  
  183.